cordova.define("com.waiqin365.h5.mencache.wqmencache", function(require,
		exports, module) {
	module.exports = new WqMencache();

	function WqMencache() {
	}

	var exec = require('cordova/exec');
	var utils = require('cordova/utils');

	WqMencache.prototype.setCacheData = function(key, data) {
		var json = '{"key":"' + key + '","data":"' + data + '"}'
		exec(null, null, "WqSaveCacheData", "wqSaveCacheData", [ json ]);
	}
	WqMencache.prototype.getCacheData = function(successCallback, key) {
		var json = '{"key":"' + key + '"}'
		exec(successCallback, null, "WqGetCacheData", "wqGetCacheData",
				[ json ]);
	}

	WqMencache.prototype.setLocationData = function(key, data) {
		var json = '{"key":"' + key + '","data":"' + data + '"}'
		exec(null, null, "WqSaveLocationData", "wqSaveLocationData", [ json ]);
	}

	WqMencache.prototype.getLoactionData = function(successCallback, key) {
		var json = '{"key":"' + key + '"}'
		exec(successCallback, null, "WqGetLoactionData", "wqGetLoactionData",
				[ json ]);
	}
});